package com.avic.rong.api;

import com.avic.rong.bean.BookList;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

public class LoginPhoneApi extends BaseApi<BookList> {


    private String mobile;
    private String code;


    public void setArguments(String mobile,String code){
        this.code = code;
        this.mobile = mobile;
    }

    public LoginPhoneApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }



    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.loginPhone(mobile,code);
    }
}
